
//---------------------------------------------------------------------------

#include <vcl.h>
#include <clipbrd.hpp>
#include "mwprogu3.h"

#pragma hdrstop
#pragma package(smart_init)
#pragma resource "*.dfm"

TForm3 *Form3;

//---------------------------------------------------------------------------

__fastcall TForm3::TForm3(TComponent* Owner)
    : TForm(Owner)
{
}

//---------------------------------------------------------------------------

// Fermeture de la fiche :
void __fastcall TForm3::BoutonRetourSchemaClick(TObject *Sender)
{
  ModalResult=mrOk;
}

//---------------------------------------------------------------------------

// Routine associée au bouton [Copier] ; l'image du schéma
// est transférée dans le presse-papier de Windows :
void __fastcall TForm3::BoutonSchemaCopierClick(TObject *Sender)
{
  Clipboard()->Assign(Image1->Picture);
  Application->MessageBox("Le schéma électrique a été copié dans le "
                          "presse-papier de\nWindows...\n\n"
                          "Vous pouvez maintenant l'imprimer ou "
                          "l'enregistrer à partir de\nn'importe quel "
                          "programme de retouche d'image, comme par\n"
                          "exemple Paint (Démarrer/Programmes/Accessoires).",
                          " Schéma électrique...",MB_OK+MB_ICONINFORMATION);
  BoutonSchemaCopier->SetFocus();
}

//---------------------------------------------------------------------------


